CommonEvent 440
Name = "魔界ヤマタイエレベーター"

  999([440])
  ConditionalBranch([0, 2519, 1])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["\\n<Mechanical Voice>"])
    ShowText(["Due to an emergency, the elevator is forcibly locked..."])
    ConditionalBranch([0, 2514, 1])
      ControlSwitches([2514, 2514, 0])
      ShowTextAttributes(["iriasu_fc4", 2, 0, 2])
      ShowText(["\\n<Ilias>"])
      ShowText(["It seems we can go underground using this elevator..."])
      ShowText(["It's troublesome that it's locked and won't move."])
      ShowTextAttributes(["stein_fc2", 0, 0, 2])
      ShowText(["\\n<Promestein>"])
      ShowText(["There should be a control computer somewhere."])
      ShowText(["If we unlock it there, it should start moving."])
      ShowTextAttributes(["ruka_fc1", 0, 0, 2])
      ShowText(["\\n<Luka>"])
      ShowText(["A control computer, huh..."])
      ShowText(["If we ask the residents around here, we might find out where it is."])
      ExitEventProcessing([])
      Empty([])

    Else([])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["It seems we can unlock the elevator from the control computer."])
      ShowText(["Let's search for the control computer that should be somewhere!"])
      ExitEventProcessing([])
      Empty([])

    BranchEnd([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([0, 2519, 0])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["\\n<Mechanical Voice>"])
    ShowText(["Which floor will you move to?"])
    Script(["unlimited_choices(11, [\"1F\", \"2F\", "])
    ScriptMore(["\"3F\",\"4F\",\"B1F\"])"])
    ConditionalBranch([1, 11, 0, 0, 0])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["\\n<Mechanical Voice>"])
      ShowText(["Moving to the 1st floor..."])
      PlaySE(["RPG::SE(@name=\"Autodoor\", @pitch=100, @volume=80)"])
      TransferPlayer([0, 112, 26, 24, 8, 0])
      ExitEventProcessing([])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 11, 0, 1, 0])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["\\n<Mechanical Voice>"])
      ShowText(["Moving to the 2nd floor..."])
      PlaySE(["RPG::SE(@name=\"Autodoor\", @pitch=100, @volume=80)"])
      TransferPlayer([0, 597, 26, 24, 8, 0])
      ExitEventProcessing([])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 11, 0, 2, 0])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["\\n<Mechanical Voice>"])
      ShowText(["Moving to the 3rd floor..."])
      PlaySE(["RPG::SE(@name=\"Autodoor\", @pitch=100, @volume=80)"])
      TransferPlayer([0, 921, 26, 24, 8, 0])
      ExitEventProcessing([])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 11, 0, 3, 0])
      ConditionalBranch([0, 2523, 1])
        ShowTextAttributes(["", 0, 0, 2])
        ShowText(["\\n<Mechanical Voice>"])
        ShowText(["Moving to the 4th floor..."])
        PlaySE(["RPG::SE(@name=\"Autodoor\", @pitch=100, @volume=80)"])
        TransferPlayer([0, 648, 26, 24, 8, 0])
        ExitEventProcessing([])
        Empty([])

      BranchEnd([])
      ConditionalBranch([0, 2523, 0])
        ShowTextAttributes(["", 0, 0, 2])
        ShowText(["\\n<Mechanical Voice>"])
        ShowText(["Abnormality detected on the 4th floor......"])
        ShowText(["Cannot go to the 4th floor by elevator."])
        ShowTextAttributes(["iriasu_fc5", 0, 0, 2])
        ShowText(["\\n<Ilias>"])
        ShowText(["This elevator really doesn't listen to me!"])
        ShowText(["Is Tamamo's spirit residing in it or something?!"])
        ShowTextAttributes(["ruka_fc1", 0, 0, 2])
        ShowText(["\\n<Luka>"])
        ShowText(["Let's go up to the 3rd floor by elevator..."])
        ShowText(["From there, we'll take the stairs to the 4th floor."])
        ShowTextAttributes(["sariera_fc1", 0, 0, 2])
        ShowText(["\\n<Sariela>"])
        ShowText(["I shall dispel Lady Ilias's anger."])
        ShowText(["Soon, I will present you with Tamamo's head..."])
        ExitEventProcessing([])
        Empty([])

      BranchEnd([])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 11, 0, 4, 0])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["\\n<Mechanical Voice>"])
      ShowText(["Moving to the B1 floor..."])
      PlaySE(["RPG::SE(@name=\"Autodoor\", @pitch=100, @volume=80)"])
      TransferPlayer([0, 116, 26, 24, 8, 0])
      ExitEventProcessing([])
      Empty([])

    BranchEnd([])
    ExitEventProcessing([])
    Empty([])

  BranchEnd([])
  Empty([])
